package dissertation.examples.ejb11.stateless;

import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Properties;

public class HelloClient {
    public static void main(String[] args) throws Exception {
        Properties properties = System.getProperties();
        Context context = new InitialContext(properties);
        HelloHome helloHome = (HelloHome) context.lookup("HelloHome");
        Hello hello = helloHome.create();
        System.out.println(hello.hello());
        hello.remove();
    }
}

